﻿using System.Windows;
using System.Windows.Data;

namespace Gmantis.Controls.Chart
{
    public class DataBindingProxy : FrameworkElement
    {
        // Fields
        public static readonly DependencyProperty ObjectProperty = Utils.RegisterProperty("Object", typeof(object), typeof(DataBindingProxy));

        // Methods
        public object GetValue(Binding bnd)
        {
            base.SetBinding(ObjectProperty, bnd);
            object obj2 = this.Object;
            base.ClearValue(ObjectProperty);
            return obj2;
        }

        // Properties
        public object Object
        {
            get
            {
                return base.GetValue(ObjectProperty);
            }
            set
            {
                base.SetValue(ObjectProperty, value);
            }
        }
    }
}
